package com.yjt.admin.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjt.admin.system.dao.MenuMapper;
import com.yjt.admin.system.entity.Menu;
import com.yjt.admin.system.param.MenuParam;
import com.yjt.admin.system.service.MenuService;
import com.yjt.admin.system.vo.MenuVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单表 服务实现类
 * </p>
 *
 * @author zzp
 * @since 2021-10-08
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Resource
    private MenuMapper menuMapper;

    @Override
    public IPage<MenuVO> getPageMenu(MenuParam menuParam) {
        //查询分页菜单
        return menuMapper.findPageMenu(menuParam.toPage(), menuParam.getMenuId());
    }
}
